package two.chapter_1.c1_3;

public class Card {
    private String val;
    private Color color;

    public Card(String val, Color color) {
        this.val = val;
        this.color = color;
    }

    public String getVal() {
        return val;
    }

    public Color getColor() {
        return color;
    }

    public enum Color {
        S("黑桃")/*Spades**/, H("红心")/*Hearts**/, D("方块")/*Diamonds**/, C("梅花")/*Clubs**/;

        private String desc;

        Color(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
}
